package com.sinba.common.system.service;


import javax.mail.internet.AddressException;

import com.sinba.common.dto.PageDTO;
import com.sinba.common.system.dao.EmailMessageQueryDTO;

/**
 * 邮件Service�?
 * @author tan
 **/
public interface IEmailService
{
	PageDTO getEmailMessage(EmailMessageQueryDTO dto, int start, int limit, String sidx, String sord);
    /**
     * 邮件发送并保存到数据库中作为已发送的邮件
     * @param dto
     * @throws AddressException
     * MessagingException,IOException
     */
    boolean sendMail(String email,String title,String content);
    void deleteEmail(Long[] ids);
}
